<!-- 插件后台分类管理 -->
<style>
.container .floattop{padding-bottom: 0;}
	#cpform thead { background: #eee;}
	#cpform th { text-align: center; border-right: 1px solid #ddd;}
	#cpform td { border-right: 1px solid #ddd; }
	.none { display: none;}
	.quanxuan { margin-right: 8px; }
	#cpform .txt { width: 60px; }
	#cpform .width100 { width: 100px; }
	.overflow-auto{max-height: 100px;overflow:auto;white-space: normal;word-break: break-all;word-wrap: break-word;}
</style>
<script>
	var jameson_admin = {
		selectall:function(em){
			if(em.getAttribute('data-select') == 1){
				em.setAttribute('data-select','2');
				var stats = true;
			}else{
				em.setAttribute('data-select','1');
				var stats = false;
			}
			var checkboxall = document.getElementsByTagName('input');
			for(var i=0,len = checkboxall.length;i<len;i++){
				if(checkboxall[i].getAttribute('type') == 'checkbox'){
					checkboxall[i].checked = stats;
				}
			}
		}
	};
</script>
<form id="cpform" action="?action=plugins&operation=config&do={$_GET['do']}&identifier=jameson_read&pmod=jameson_read&contrl=mbook&act=delshuping" autocomplete="off" method="post" name="cpform">
<table class="tb tb2">
<thead class="">
	<tr class="header ">
		<th class="txt"><a href="javascript:;" data-select="1" onclick="jameson_admin.selectall(this)" id="quanxuan" class="quanxuan">{lang jameson_read:quanxuan}</a>{lang jameson_read:xuhao}</th>
		<th class="width100">{lang jameson_read:shuming}</th>
		<th class="width100">{lang jameson_read:zancheng}</th>
		<th class="width100">{lang jameson_read:fandui}</th>
		<th>{lang jameson_read:shuping}</th>
	</tr>
</thead>
<tbody>
{if $shuping}
{loop $shuping $key $sp}
	<tr class="hover threadopt">
		<td ><input value="{$sp['dp_id']}" type="checkbox" name="dpid[{$sp['dp_id']}]" />{eval echo ++$key;}</td>
		<td class="">{$sp['book_name']}</td>
		<td>{$sp['zhichi']}</td>
		<td>{$sp['fandui']}</td>
		<td><div class="overflow-auto">{$sp['text']}</div></td>
	</tr>
{/loop}
{else}
{/if}
	<tr>
		<td colspan="5">
			<input type="hidden" name="formhash" value="{FORMHASH}">
			<input id="submit_editsubmit" class="btn" type="submit" value="{lang jameson_read:shanchu}" name="editsubmit">
		</td>
	</tr>
</tbody>
</table>
</form>
<div class="margintop marginbot cl right">{$pageshow}</div>
<script type="text/javascript" src="./source/plugin/jameson_read/template/adm.js"></script>